

<%@ page import="org.tailor.Dashboard" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta name="layout" content="main" />
        <g:set var="entityName" value="${message(code: 'dashboard.label', default: 'Dashboard')}" />
        <title><g:message code="default.create.label" args="[entityName]" /></title>
    </head>
    <body>
        <div class="nav">
            <span class="menuButton"><a class="home" href="${createLink(uri: '/')}"><g:message code="default.home.label"/></a></span>
            <span class="menuButton"><g:link class="list" action="list"><g:message code="default.list.label" args="[entityName]" /></g:link></span>
        </div>
        <div class="body">
            <h1><g:message code="default.create.label" args="[entityName]" /></h1>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            <g:hasErrors bean="${dashboardInstance}">
            <div class="errors">
                <g:renderErrors bean="${dashboardInstance}" as="list" />
            </div>
            </g:hasErrors>
            <g:form action="save" >
                <div class="dialog">
                    <table>
                        <tbody>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="dashboardID"><g:message code="dashboard.dashboardID.label" default="Dashboard ID" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: dashboardInstance, field: 'dashboardID', 'errors')}">
                                    <g:textField name="dashboardID" value="${fieldValue(bean: dashboardInstance, field: 'dashboardID')}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="twitterId"><g:message code="dashboard.twitterId.label" default="Twitter Id" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: dashboardInstance, field: 'twitterId', 'errors')}">
                                    <g:textField name="twitterId" value="${dashboardInstance?.twitterId}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="twitterPassword"><g:message code="dashboard.twitterPassword.label" default="Twitter Password" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: dashboardInstance, field: 'twitterPassword', 'errors')}">
                                    <g:textField name="twitterPassword" value="${dashboardInstance?.twitterPassword}" />
                                </td>
                            </tr>
                        
                        </tbody>
                    </table>
                </div>
                <div class="buttons">
                    <span class="button"><g:submitButton name="create" class="save" value="${message(code: 'default.button.create.label', default: 'Create')}" /></span>
                </div>
              
              
               
              
              <!-- START:twitter -->
  <tr class="prop">
    <td valign="top" class="name">
      <label for="twitterId">TwitterId / Nickname:</label>
    </td>
    <td valign="top">
      <input type="text" 
             id="twitterId" 
             name="twitterId" 
             value="${fieldValue(bean:tekEventInstance,field:'twitterId')}"/>
    </td>
  </tr> 
  <tr class="prop">
    <td valign="top" class="name">
      <label for="twitterPassword">Twitter Password:</label>
    </td>
    <td valign="top">
      <input type="password" 
             id="twitterPassword" 
             name="twitterPassword" 
             value="${fieldValue(bean:tekEventInstance,field:'twitterPassword')}"/>
    </td>
  </tr> 
<!-- END:twitter -->
              
              
              
            </g:form>
        </div>
    </body>
</html>
